<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {

    }
  },
  created () {
    var that = this
    this.resizeTimer = false
    window.onresize = () => {
      return (() => {
        if (!that.resizeTimer) {
          that.resizeTimer = true
          that.setWin()
          setTimeout(function () {
            that.resizeTimer = false
          }, 400)
        }
      })()
    }
    that.setWin()
  },
}
</script>
<style>
  @import '../static/css/main.css';
</style>
<style lang="less">
  @import '~vux/src/styles/reset.less';
</style>
